package com.biz.primus.base.vo.commodity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 商品索引标识Vo
 *
 * @author david-liu
 * @date 2017年01月19日
 * @reviewer
 */
@Data
@ApiModel("商品索引请求vo")
public class ProductIdxIdentityVo implements Serializable {
    private static final long serialVersionUID = 5594156877710815875L;

    @NotNull
    @ApiModelProperty("商品编码")
    private String productCode;

    @NotNull
    @ApiModelProperty(value = "商品类型 详见 VendorType",required = true)
    public Integer productType;

    @ApiModelProperty(value = "门店编码 为空代表建立该商品所有门店的索引",required = false)
    private String depotCode;

    @ApiModelProperty("门店Id")
    private Long shopId;

    @ApiModelProperty(value = "是否删除旧索引")
    private Boolean willBeDeleted = false;

    @ApiModelProperty("上下架状态 下架会删除该商品的索引,其他情况不传递")
    private SaleStatus saleStatus;

}
